home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / pmode / 386p_099 / examples.doc < prev    next >
Encoding:
Text File  |  1994-05-03  |  2.5 KB  |  55 lines

  1. Here follows the description of some of my test code
  2. (very crude, these are quick and dirty examples i use to debug things)
  3. Under Windows , run these programs FULL SCREEN in exclusive mode.
  4. Assembling these programs you will need at least 256k of free low memory
  5. and 128k of free extended memory, if you have not try to reduce
  6. the EXTMIN and LOWMIN constants declared into 386Power.inc
  7. (the minimum value for EXTMIN must be 64)
  8.  
  9. EXAMPLE0.ASM
  10.         Create it typing:
  11.                 makex example0
  12.                 
  13.         It tries to "get up", reads the file hello.txt 
  14.         and writes it to screen in text mode
  15.         then shows an example of "raw" keyboard
  16.         handling (press & release keys to see what key you pressed).
  17.         The _RKB table is cleared at every keypress.
  18.         Pressing ESC you terminate the program.
  19.         
  20. EXAMPLE1.ASM
  21.         Create it typing:
  22.                 makex example1
  23.                 
  24.         It looks a lot like example1 , but this time it reads
  25.         a voc file called tiger.voc (a sample voc from Street Fighter 2)
  26.         and then repeatly plays it back at 8008Hz.
  27.         If you have a "slow" system or an old keyboard controller
  28.         it may hang.  Press ESC to end.
  29.         Under Windows (DPMI) the playback rate is set to 4004Hz
  30.         because that jerky DPMI server is too darned slow 
  31.         on my 386DX/25 (the DPMI server traps all OUT and IN opcodes)
  32.         when the 4004Hz ISR kicks int it may seem the program has been halted
  33.         BUT it is running (just too much CPU overhead due to DPMI
  34.         trapping too much), wait 30 seconds if you have a slow system and
  35.         something will happen.
  36.         DO NOT PRESS CTRL-ALT-DEL to terminate this program, press ESC
  37.         (and wait if you have a slow system).
  38.         
  39. EXVGA.ASM
  40.         Create it typing:
  41.                 makv exvga
  42.         To change from example to example press ANY key.        
  43.         It kicks into mode-x (actually mode-y), draws filled rectangles
  44.         with _Block routines then loads a pcx file featuring gearbox
  45.         (n.b. Gearbox is protected by copyright and trademark)
  46.         Then it loads another pcx file and samples from it
  47.         a multicolor bitmapped font (actually a bunch of 8x8 bitmaps
  48.         handled directly).
  49.         Then shows it can write things :)
  50.         and repeatly displays on the same page a matrix of 10x5
  51.         Gearbox units using the TRLE sprite routine.
  52.         Notice the simple screen to screen effect obtained with the
  53.         Scr2Scr routine.
  54.         
  55.